const MyLoadingRedux = (state = {spinning: false}, action) => {
    const newInitState = {...state}
    switch (action.type) {
        case 'SETSPINNING':
            newInitState.spinning = action.data
            return newInitState
        default:
            return state

    }
}

export default MyLoadingRedux
